[PATCH] [WebAssembly] Use default attributes for intrinsics
[Ubuntu note: backport this patch according to this llvm release]
From
d35fcf0e97e7bb02381506a71e61ec282b292c50 Mon Sep 17 00:00:00 2001
[Ubuntu note: backport this patch according to this llvm release]
From
d35fcf0e97e7bb02381506a71e61ec282b292c50 Mon Sep 17 00:00:00 2001
From: Nikita Popov <npopov@redhat.com>
Date: Mon, 7 Nov 2022 15:50:05 +0100
Subject: [PATCH] [WebAssembly] Use default attributes for intrinsics
This switches wasm intrinsics to use default attributes,
i.e. nofree, nosync, nocallback and willreturn. Especially
willreturn will be required to avoid optimization regressions
in the future.
The attributes are omitted from the trapping fptoi intrinsics
(where I assume trapping is considered well-defined, and as such
these aren't willreturn), the throw/rethrow intrinsics (which
will unwind) and the atomic intrinsics (which aren't nosync).
Differential Revision: https://reviews.llvm.org/
D137551
Gbp-Pq: Name CVE-2023-29932.patch